package com.ycfmedical.bed.bean;

import android.os.Parcel;
import android.os.Parcelable;

import cn.droidlover.xdroidmvp.event.IBus;

/**
 * Created by Administrator on 2017-04-10.
 */

public class BedParameterInfo implements Parcelable,IBus.IEvent{

    @Override
    public int getTag() {
        return 10;
    }

    public BedParameterInfo
            (String AngleOrderMsg,int slantAngle,  int nurseStature,
             int pitchAngleOne,int rollAngleOne,
             int courseAngleOne,int pitchAngleTwo,
             int rollAngleTwo,int courseAngleTwo)
    {
        this.slantAngle = slantAngle;
        this.nurseStature = nurseStature;
        this.pitchAngleOne = pitchAngleOne;
        this.rollAngleOne = rollAngleOne;
        this.courseAngleOne = courseAngleOne;
        this.pitchAngleTwo = pitchAngleTwo;
        this.rollAngleTwo = rollAngleTwo;
        this.courseAngleTwo = courseAngleTwo;
        this.AngleOrderMsg = AngleOrderMsg;
    }


    private int slantAngle;
    private int nurseStature;
    private int pitchAngleOne;
    private int rollAngleOne;
    private int courseAngleOne;
    private int pitchAngleTwo;
    private int rollAngleTwo;
    private int courseAngleTwo;
    private String AngleOrderMsg;

    public String getAngleOrderMsg() {return AngleOrderMsg;}

    public void setAngleOrderMsg(String angleOrderMsg) {this.AngleOrderMsg = angleOrderMsg;}

    public int getPitchAngleOne() {
        return pitchAngleOne;
    }

    public void setPitchAngleOne(int pitchAngleOne) {
        this.pitchAngleOne = pitchAngleOne;
    }

    public int getRollAngleOne() {
        return rollAngleOne;
    }

    public void setRollAngleOne(int rollAngleOne) {
        this.rollAngleOne = rollAngleOne;
    }

    public int getCourseAngleOne() {
        return courseAngleOne;
    }

    public void setCourseAngleOne(int courseAngleOne) {
        this.courseAngleOne = courseAngleOne;
    }

    public int getPitchAngleTwo() {
        return pitchAngleTwo;
    }

    public void setPitchAngleTwo(int pitchAngleTwo) {
        this.pitchAngleTwo = pitchAngleTwo;
    }

    public int getRollAngleTwo() {
        return rollAngleTwo;
    }

    public void setRollAngleTwo(int rollAngleTwo) {
        this.rollAngleTwo = rollAngleTwo;
    }

    public int getCourseAngleTwo() {
        return courseAngleTwo;
    }

    public void setCourseAngleTwo(int courseAngleTwo) {
        this.courseAngleTwo = courseAngleTwo;
    }

    public static Creator<BedParameterInfo> getCREATOR() {
        return CREATOR;
    }

    public int getSlantAngle() {
        return slantAngle;
    }

    public void setSlantAngle(int slantAngle) {
        this.slantAngle = slantAngle;
    }

    public int getNurseStature() {
        return nurseStature;
    }

    public void setNurseStature(int nurseStature) {
        this.nurseStature = nurseStature;
    }

    @Override
    public String toString() {
        return "BedParameterInfo{" +
                "AngleOrderMsg=" + AngleOrderMsg +
                "slantAngle=" + slantAngle +
                ", nurseStature=" + nurseStature +
                ", pitchAngleOne=" + pitchAngleOne +
                ", rollAngleOne=" + rollAngleOne +
                ", courseAngleOne=" + courseAngleOne +
                ", pitchAngleTwo=" + pitchAngleTwo +
                ", rollAngleTwo=" + rollAngleTwo +
                ", courseAngleTwo=" + courseAngleTwo +
                '}';
    }

    protected BedParameterInfo(Parcel in) {
        AngleOrderMsg = in.readString();
        slantAngle = in.readInt();
        nurseStature = in.readInt();
        pitchAngleOne = in.readInt();
        rollAngleOne = in.readInt();
        courseAngleOne = in.readInt();
        pitchAngleTwo = in.readInt();
        rollAngleTwo = in.readInt();
        courseAngleTwo = in.readInt();

    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(AngleOrderMsg);
        dest.writeInt(slantAngle);
        dest.writeInt(nurseStature);
        dest.writeInt(pitchAngleOne);
        dest.writeInt(rollAngleOne);
        dest.writeInt(courseAngleOne);
        dest.writeInt(pitchAngleTwo);
        dest.writeInt(rollAngleTwo);
        dest.writeInt(courseAngleTwo);


    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<BedParameterInfo> CREATOR = new Creator<BedParameterInfo>() {
        @Override
        public BedParameterInfo createFromParcel(Parcel source) {
            return null;
        }

        @Override
        public BedParameterInfo[] newArray(int size) {
            return new BedParameterInfo[0];
        }
    };


}
